﻿using DotNetty.Buffers;
using DotNetty.Codecs;
using DotNetty.Transport.Channels;
using System;
using System.Collections.Generic;
using System.Text;

namespace EmbededChannelTest
{
    public class ShortToByteEncoder : MessageToByteEncoder<short>
    {
        protected override void Encode(IChannelHandlerContext context, short message, IByteBuffer output)
        {
            output.WriteShort(message);
        }
    }
}
